package cn.ruituo.adv3;

import java.util.Scanner;

public class INputTest {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("input a number:");
        int i=in.nextInt();
        System.out.println("input a string:");
        if(in.hasNextLine())
            in.nextLine();//去掉上面的回车

        String str=in.nextLine();
        System.out.println("int ="+i+",string="+str);
    }
}
